<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta http-equiv="X-UA-Compatible" content="IE=edge">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>交错动画</title>
  <style>
    html, body {
      height: 100%;
      background: #eee;
    }
    .box {
      position: fixed;
      top: 50%;
      left: 50%;
      transform: translate(-50%, -50%);
    }
    .dot {
      width: 40px;
      height: 40px;
      border-radius: 50%;
      margin: 20px;
      position: relative;
      float: left;
    }
    .dot:nth-child(1) {
      background-color: aqua;
    }
    .dot:nth-child(2) {
      background-color: lightskyblue;
    }
    .dot:nth-child(3) {
      background-color: lightseagreen;
    }
    .dot:nth-child(4) {
      background-color: green;
    }
    .dot:nth-child(5) {
      background-color: greenyellow;
    }
    .dot::after {
      position: absolute;
      content: '';
      width: 100%;
      height: 100%;
      background: inherit;
      border-radius: inherit;
      animation: run 2.5s ease-out infinite;
    }
    .dot:nth-child(2)::after {
      animation-delay: .2s;
    }
    .dot:nth-child(3)::after {
      animation-delay: .4s;
    }
    .dot:nth-child(4)::after {
      animation-delay: .6s;
    }
    .dot:nth-child(4)::after {
      animation-delay: .8s;
    }
    .dot:nth-child(5)::after {
      animation-delay: 1s;
    }
    @keyframes run {
      0% {
        transform: scale(1);
        opacity: 1;
      }
      80%, 100% {
        transform: scale(2);
        opacity: 0;
      }
    }
  </style>
</head>
<body>
  <div class="box">
    <div class="dot"></div>
    <div class="dot"></div>
    <div class="dot"></div>
    <div class="dot"></div>
    <div class="dot"></div>
  </div>
</body>
</html>